<?php

class View extends Controller {

	function View() {
		parent::Controller();
	}

	function index() {
		if( !$this->Account->is_admin() ) {
			redirect('', 'location');
		}
		$this->load->view('task/list');
	}

	function id($id) {
		if( $this->Account->is_guest() ) {
			redirect('', 'location');
		}
		$this->task = $this->Tasks->fetch($id);
		$this->load->view('task/view');
	}
}

?>
